package cn.kgc.mcartoon.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 章节-内容表
 * </p>
 *
 * @author christopher
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mm_chapter_content")
public class MmChapterContentDO extends Model<MmChapterContentDO> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
      @TableId(value = "contentId", type = IdType.AUTO)
    private Long contentid;

    /**
     * 动漫表主键ID
     */
    @TableField("cartoonId")
    private Long cartoonid;

    /**
     * 章节表主键ID
     */
    @TableField("chapterId")
    private Long chapterid;

    /**
     * 漫画内容路径
     */
    @TableField("cartoonContent")
    private String cartooncontent;

    /**
     * 页码
     */
    private Integer page;

    /**
     * 页码标识 0-->默认标识；1-->首页；2-->尾页
     */
    @TableField("pageSign")
    private Integer pagesign;

    /**
     * 创建人
     */
    @TableField("createdUserId")
    private Long createduserid;

    /**
     * 修改人
     */
    @TableField("updatedUserId")
    private Long updateduserid;

    /**
     * 是否删除(0:否,1:是)
     */
    @TableField("isDelete")
    private Integer isdelete;

    /**
     * 创建时间
     */
    @TableField("creatdTime")
    private Date creatdtime;

    /**
     * 修改时间
     */
    @TableField("updatedTime")
    private Date updatedtime;


    @Override
    protected Serializable pkVal() {
        return this.contentid;
    }

}
